# coding: utf-8
'''

Python里的拷贝
'''

import copy

a = [1, 2, 3, 4, ['a', 'b']]  #原始对象

b = a
c = copy.copy(a)
d = copy.deepcopy(a)

a.append(5)
a[4].append('c')

print 'a =', a
print 'b =', b
print 'c =', c
print 'd =', d
